﻿using System;




/*
 Requirements
Implement the SFTP Client Library.
Implement basic methods (Connect, Disconnect, MakeDir, List, upload...etc).
Instead of developing a separate SFtp Client for the library, should rather merge both SFTP & FTP functionality in the same C# class.

 */

namespace ConsoleApplication1
{
    class SFTP

    {

       


        static void Main(string[] args)
        {
            #region Definition

                     
            string strHost = "ftp://68.68.27.35";
            string strUserName = "yousfi";
            string strPwd = "C!rru$C@pture";
            int nPort = 22;
            string dir = @"D:\My Programm\123";
            string choice = "";


            #endregion

            // FtpState.AsynchronousFtpUpLoader uploader = new FtpState.AsynchronousFtpUpLoader();
            // string upload = uploader.FtpUpLoader (strHost, nPort, strUserName, strPwd); 

          FtpClient ftpclient = new FtpClient ();
            string establish = ftpclient.connect(strHost, nPort, strUserName, strPwd);
            
            
            Console.WriteLine(establish);
            Console.ReadLine();


          
            
        }
    }
}
